<@user.user_html> 
    <script type="text/javascript" src="${base}/scripts/user/favorite/index.js" language="javascript"></script>
    <div class="clear"></div>
    <div class="swarp">
    	<#-- 嵌入导航-->
		<#include "/WEB-INF/content/include/user/app.ftl">
        <div class="srightwarp">
        	<div class="xwarp" style=" margin:0px; width:750px; overflow:hidden;">
            	<div class="xtitle">
                	<ul>
                        <li class="check">收    藏</li>
                    </ul>
                    <div class="clear"></div>
                </div>
                <div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;">
            		<div class="star_save" style="text-align:left;"><#--<input name="" type="button" class="w" value="删除整页收藏"/>--></div>
                    <div class="HideList">
                    	
                    	<#if (favoritePage.result)??>
							<#list favoritePage.result as favorite>
		                        <div class="inner">
		                            <div class="innerImg">
		                            	<#if (favorite.show.cover)??>
		                            		<img src="${(favorite.show.cover)!}" width="152px" height="114px"/>
		                            	<#else>
			                            	<img src="${base}/images/temp/group_img.jpg" />
		                            	</#if>
		                            </div>
		                            <div class="innerDescription">
		                                <div class="Iname">
		                                    <img src="${base}/images/gourp_ico3.gif" />
		                                    <a href="${base}/space/?domain=${(favorite.show.space.user.loginName)!}" target="_blank">${(favorite.show.space.user.loginName)!}</a>
		                                </div>
		                                <div class="character">
		                                    <span></span>
		                                </div>
		                            </div>
		                            <div class="innerClike">
		                                <span title="点击量"><img src="${base}/images/gourp_ico1.gif" />${(favorite.show.hit)!}</span>
		                                <span title="评论数"><img src="${base}/images/gourp_ico2.gif" />${(favorite.show.commentaries)!}</span>
		                            </div>
		                            <div class="hideit">
		                            	<input name="" type="button" class="n1" value="取消收藏" onClick="remove(${favorite.id})"/>
		                            </div>
		                        </div>
                        	</#list>
                        </#if>
       
                        <div class="clear"></div>
                    </div>
                    <div class="star_save" style="text-align:left;"><#--<input name="" type="button" class="w" value="删除整页收藏"/>--></div>
            	</div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <script>
    	function remove(id){
        var result = confirm("确定要进行该操作吗？该操作不可逆转");
        if (result) {
        	window.location='${base}/user/favorite/index!remove?id='+id;
        }

}
    </script>
</@user.user_html> 

